# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=py3-authres
pkgver=1.2.0
pkgrel=1
pkgdesc="RFC 5451/7001/7601 Authentication-Results Headers generation and parsing for Python"
url="https://launchpad.net/authentication-results-python"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://launchpad.net/authentication-results-python/1.2/$pkgver/+download/authres-$pkgver.tar.gz"
builddir="$srcdir/authres-$pkgver"
options="!check" # no test suite

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
b801b24127f90608c4e7870a3a15bfb6e350f7d8bbe7b7cd9e1c6d541fd360afb9bdd15f35e864f01f8ff2d33d65650e712c932c9402ab2affb86bc7536b63e1  authres-1.2.0.tar.gz
"
